package com.citcc.common.msg;

import io.swagger.annotations.ApiModelProperty;

/**
 * Created by czh on 2019/5/20 15:49
 */
public class Response<T> {

    /**
     * 200-成功，其它任何状态码均失败
     */
    @ApiModelProperty(value = "200-成功，其它任何状态码均失败", example = "200")
    private Integer code;

    /**
     * 返回描述
     */
    @ApiModelProperty(value = "当code不等于200的时候,失败信息")
    private String msg;

    /**
     * 返回的具体数据
     */
    @ApiModelProperty(value = "响应体数据")
    private T data;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}